#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int x, s=1, z,m=1,i;
	scanf("%d", &x);
	do{
		x = x / 10;
		m++;
	} while (x != 0);
	printf("%d\n",m);
	for (i = 1; i < m; i++)
		x = x / 10;
	    if (x == 0)
		for (i = 1;)
		putchar('\n');
		do
		{
			x = x / 10;
		} while (x != 0);
		putchar('\n');

	return 0;
}

